#ifndef PPMIMAGE_H
#define PPMIMAGE_H

#include "Couleur.h"
#include <string>
#include <vector>

using namespace std;

class PPMImage
{
private:
	char* filename;
	int width;
	int height;
	int maxValue;
	unsigned char* pix;

public:
	PPMImage();
	PPMImage(char* filename1);
	~PPMImage();
	PPMImage& operator=(const PPMImage& image);
	int getWidth();
	int getHeight();
	int getMaxValue();
	unsigned char getPix(int x, int y);
	Couleur getCouleur(int x, int y);
	void traiteImage();
	vector<string> split(string src, string separator);
	void save();
};


#endif